package com.epam.web_project.bank.entity;

import java.math.BigDecimal;
import java.sql.Date;

public class Account {
	private int id;
	private int ownerId;
	private Currency currency;
	private BigDecimal amount;
	private BigDecimal creditLimit;
	private Card card;
	private String iban;
	private boolean blocked;
	private boolean onApproval;
	private Date registered;
	
	public Account() {
		
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Card getCard() {
		return card;
	}

	public void setCard(Card card) {
		this.card = card;
	}

	public String getIban() {
		return iban;
	}

	public void setIban(String iban) {
		this.iban = iban;
	}

	public Currency getCurrency() {
		return currency;
	}

	public void setCurrency(Currency currency) {
		this.currency = currency;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getCreditLimit() {
		return creditLimit;
	}

	public void setCreditLimit(BigDecimal creditLimit) {
		this.creditLimit = creditLimit;
	}

	public boolean isBlocked() {
		return blocked;
	}

	public void setBlocked(boolean blocked) {
		this.blocked = blocked;
	}

	public int getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(int ownerId) {
		this.ownerId = ownerId;
	}


	public boolean isOnApproval() {
		return onApproval;
	}


	public void setOnApproval(boolean onApproval) {
		this.onApproval = onApproval;
	}


	public Date getRegistered() {
		return registered;
	}


	public void setRegistered(Date registered) {
		this.registered = registered;
	}


	@Override
	public String toString() {
		return "Account [id=" + id + ", ownerId=" + ownerId + ", currency="
				+ currency + ", amount=" + amount + ", creditLimit="
				+ creditLimit + ", card=" + card + ", iban=" + iban
				+ ", blocked=" + blocked + ", onApproval=" + onApproval
				+ ", registered=" + registered + "]";
	}
	
}
